public class Test1 {
    public static void main(String[] args) {
        int[] a;
        a = new int[5];
        a[0] = 88;
        a[1] = 99;
        a[2] = 78;
        a[3] = 84;
        a[4] = 100;
        int sum = 0;
        for (int i = 0; i < 5; i++) {
            sum = sum + a[i];
        }
        System.out.println("平均值：" + sum / 5);
    }
}